package com.iims.web.swagger;

import com.iims.system.domain.SysGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author fanpei
 * @date 2021/6/9 16:32
 */
@Data
@ApiModel("分组-角色关联实体")
public class GroupRoleVo {
    @ApiModelProperty(name = "groupId", value = "分组编号", required = true, position = -1)
    private Long groupId;

    /**
     * 角色列表
     */
    @ApiModelProperty(value = "关联角色列表", required = true)
    private Long[] roleIds;

    public SysGroup getGroup() {
        SysGroup group = new SysGroup();
        group.setGroupId(groupId);
        group.setRoleIds(roleIds);
        return group;
    }
}
